[id].vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adList[0]" v-if="adList[0]"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>本网招聘</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <!-- 资讯列表 -->
  22. <div class="newsList">
  23. <div class="inner">
  24. <div class="innerLeft">
  25. <div class="projectMoreBox">
  26. <div class="projectMoreTitle">社会保障在线网</div>
  27. <div class="projectMoreText">
  28. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  29. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  30. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  31. </div>
  32. </div>
  33. <div class="innerTitle">本网招聘</div>
  34. <ul class="list">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
  37. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  38. </li>
  39. </ul>
  40. <!-- 分页器 -->
  41. <!-- <div class="pagination">
  42. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  43. prev-text="上一页" next-text="下一页" @change="changePage" />
  44. </div> -->
  45. </div>
  46. <div class="innerRight">
  47. <div class="rightMenuTitle">导航列表</div>
  48. <ul>
  49. <li v-for="(item, index) in bottomMenu" :key="index">
  50. <NuxtLink :to="`/speciaArticle/${item.id}`" v-if="item.id == pageId && item.id != 7" class="active" :title="item.name">{{ item.name }}</NuxtLink>
  51. <NuxtLink :to="`/speciaArticle/${item.id}`" v-else-if="item.id != pageId && item.id != 7" :title="item.name">{{ item.name }}</NuxtLink>
  52. <NuxtLink :to="`/specialList/${item.id}`" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active" :title="item.name">{{item.name}}</NuxtLink>
  53. <NuxtLink :to="`/specialList/${item.id}`" v-else-if="item.id == 7" :title="item.name">{{item.name}}</NuxtLink>
  54. </li>
  55. </ul>
  56. </div>
  57. <div style="clear: both;"></div>
  58. </div>
  59. </div>
  60. <!-- 列表页广告二 -->
  61. <HomeTopTen :imgurl="adList[1]" v-if="adList[1]"></HomeTopTen>
  62. <!-- 页面底部 -->
  63. <HomeFoot1></HomeFoot1>
  64. </div>
  65. </template>
  66. <script setup>
  67. //1.页面依赖 start ---------------------------------------->
  68. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  69. import { ArrowRight } from '@element-plus/icons-vue'
  70. //获得跳转过来的id
  71. const route = useRoute();
  72. const pageId = route.params.id;
  73. const routeHref = route.href;
  74. //1.页面依赖 end ---------------------------------------->
  75. //2.页面数据 start ---------------------------------------->
  76. let adList = ref([]);
  77. async function getAdData(){
  78. const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  79. adList.value = adData.data;
  80. }
  81. getAdData();
  82. //左侧导航
  83. const bottomMenu = ref([]);
  84. async function getPageMenu() {
  85. const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
  86. method: 'GET',
  87. query: {},
  88. });
  89. bottomMenu.value = mkdata.data;
  90. }
  91. getPageMenu();
  92. //列表
  93. const newsList = ref([]);
  94. let newslists = async () => {
  95. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  96. method: 'GET',
  97. query: {
  98. 'fcat_id':pageId,
  99. },
  100. });
  101. newsList.value = listData.data;
  102. }
  103. //获得列表
  104. newslists();
  105. //分页
  106. let changePage = (value) => {
  107. console.log("当前页码", value);
  108. page.value = value
  109. console.log(page.value);
  110. newslists()
  111. }
  112. //2.页面数据 end ---------------------------------------->
  113. //3 设置seo信息
  114. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  115. method: 'GET',
  116. query: {},
  117. });
  118. let seoTitle = setData.data.website_head.title;
  119. let seoDescription = setData.data.website_head.description;
  120. let seoKeywords = setData.data.website_head.keywords;
  121. let seoSuffix = setData.data.website_head.suffix;
  122. let seoName = setData.data.website_head.website_name;
  123. useSeoMeta({
  124. title: seoTitle + "_" + seoSuffix,
  125. meta: [
  126. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix },
  127. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix }
  128. ]
  129. });
  130. //3.设置seo信息 end---------------------------------------->
  131. </script>
  132. <style lang="less" scoped>
  133. //导航条
  134. .breadcrumb {
  135. width: 100%;
  136. height: 22px;
  137. margin-bottom: 30px;
  138. font-family: Microsoft YaHei, Microsoft YaHei;
  139. font-weight: 400;
  140. font-size: 20px;
  141. color: #666666;
  142. line-height: 23px;
  143. text-align: left;
  144. font-style: normal;
  145. text-transform: none;
  146. :deep(.el-breadcrumb) {
  147. display: inline-block;
  148. vertical-align: -4px;
  149. }
  150. :deep(.el-breadcrumb__inner a),
  151. :deep(.el-breadcrumb__inner.is-link) {
  152. color: #666666;
  153. font-weight: 400;
  154. text-decoration: none;
  155. transition: var(--el-transition-color);
  156. }
  157. span {
  158. font-family: Microsoft YaHei, Microsoft YaHei;
  159. font-weight: 400;
  160. font-size: 20px;
  161. color: #666666;
  162. line-height: 23px;
  163. text-align: left;
  164. font-style: normal;
  165. text-transform: none;
  166. }
  167. span:hover {
  168. color: #666666;
  169. }
  170. .location {
  171. margin-right: 20px;
  172. width: 100px;
  173. height: 22px;
  174. font-family: Microsoft YaHei, Microsoft YaHei;
  175. font-weight: 400;
  176. font-size: 20px;
  177. color: #666666;
  178. line-height: 23px;
  179. text-align: left;
  180. font-style: normal;
  181. text-transform: none;
  182. }
  183. }
  184. // 资讯列表
  185. .newsList {
  186. width: 100%;
  187. margin-bottom: 70px;
  188. .inner {
  189. width: 1200px;
  190. height: 1300px;
  191. .innerLeft {
  192. height: 65px;
  193. line-height: 65px;
  194. font-size: 22px;
  195. color: #028E21;
  196. font-weight: bold;
  197. }
  198. .innerTitle {
  199. font-size: 24px;
  200. }
  201. .innerLeft {
  202. float: right;
  203. >.list {
  204. height: 570px;
  205. margin-bottom: 70px;
  206. border-top: 1px solid #139602;
  207. >li {
  208. width: 790px;
  209. height: 60px;
  210. white-space: nowrap;
  211. overflow: hidden;
  212. text-overflow: ellipsis;
  213. line-height: 60px;
  214. //border-bottom: 1px solid #D9D9D9;
  215. >a {
  216. width: 360px;
  217. height: 26px;
  218. cursor: pointer;
  219. font-family: Microsoft YaHei, Microsoft YaHei;
  220. font-weight: 400;
  221. font-size: 20px;
  222. color: #333333;
  223. line-height: 26px;
  224. text-align: left;
  225. font-style: normal;
  226. text-transform: none;
  227. }
  228. }
  229. >li:hover>a {
  230. color: #139602;
  231. }
  232. >li:nth-child(1)::after,
  233. >li:nth-child(2)::after {
  234. content: "热";
  235. margin-left: 13px;
  236. background: #FF8A37;
  237. color: #fff;
  238. font-size: 14px;
  239. padding: 0px 2px;
  240. }
  241. >li:nth-child(5n) {
  242. border-bottom: 1px solid #D9D9D9;
  243. }
  244. }
  245. >.pagination {
  246. width: 800px;
  247. height: 34px;
  248. margin-left: 141px;
  249. display: flex;
  250. justify-content: center;
  251. margin: 0;
  252. // 鼠标移入后字体颜色
  253. .el-pagination::v-deep :hover {
  254. color: #139609;
  255. }
  256. .el-pagination.is-background::v-deep .btn-next,
  257. .el-pagination.is-background::v-deep .btn-prev {
  258. width: 70px;
  259. height: 34px;
  260. margin: 0px 10px;
  261. border-radius: 4px;
  262. }
  263. .el-pagination.is-background::v-deep .el-pager li {
  264. margin: 0px 10px;
  265. width: 38px;
  266. height: 34px;
  267. border-radius: 4px;
  268. }
  269. .el-pagination.is-background::v-deep .btn-next.is-active,
  270. .el-pagination.is-background::v-deep .btn-prev.is-active,
  271. .el-pagination.is-background::v-deep .el-pager li.is-active {
  272. background-color: #028e21;
  273. color: #fff;
  274. }
  275. }
  276. }
  277. .innerRight {
  278. width: 279px;
  279. .rightMenuTitle {
  280. width: 279px;
  281. height: 69px;
  282. font-size: 22px;
  283. font-weight: bold;
  284. line-height: 58px;
  285. text-align: center;
  286. color: #fff;
  287. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreTitle.png") no-repeat;
  288. margin-bottom: 30px;
  289. }
  290. ul {
  291. li {
  292. a {
  293. border-left: 5px solid #028E21;
  294. margin-bottom: 15px;
  295. font-size: 22px;
  296. display: block;
  297. height: 61px;
  298. line-height: 61px;
  299. color: #333333;
  300. text-align: center;
  301. background: #FBFBFB;
  302. }
  303. }
  304. }
  305. .active {
  306. border-left: 0;
  307. border: 1px solid #028E21;
  308. background: #fff;
  309. }
  310. }
  311. }
  312. }
  313. //资讯推荐
  314. .zixuntuijian {
  315. width: 100%;
  316. height: 290px;
  317. margin-bottom: 70px;
  318. .innerLeft {
  319. // 左侧
  320. .zixunLeft {
  321. margin-right: 30px;
  322. }
  323. .zixunRight,
  324. .zixunLeft {
  325. float: left;
  326. width: 380px;
  327. height: 290px;
  328. // 标题部分
  329. >.title {
  330. width: 380px;
  331. }
  332. >.title>h3 {
  333. height: 36px;
  334. font-family: Source Han Sans, Source Han Sans;
  335. font-weight: bold;
  336. font-size: 24px;
  337. color: #000000;
  338. line-height: 28px;
  339. text-align: left;
  340. font-style: normal;
  341. text-transform: none;
  342. border-bottom: 1px solid #139602;
  343. }
  344. >.title>h3>span {
  345. float: right;
  346. width: 56px;
  347. height: 20px;
  348. line-height: 24px;
  349. font-weight: 400;
  350. font-size: 14px;
  351. color: #999999;
  352. font-style: normal;
  353. text-transform: none;
  354. }
  355. .photo_text {
  356. >li:first-child {
  357. width: 380px;
  358. height: 120px;
  359. margin-top: 20px;
  360. margin-bottom: 15px;
  361. position: relative;
  362. >img {
  363. float: left;
  364. width: 160px;
  365. height: 120px;
  366. }
  367. >div {
  368. float: left;
  369. width: 220px;
  370. height: 120px;
  371. padding-left: 15px;
  372. padding-top: 6px;
  373. box-sizing: border-box;
  374. background-color: #f6f6f6;
  375. >h5 {
  376. width: 200px;
  377. height: 54px;
  378. display: -webkit-box;
  379. -webkit-box-orient: vertical;
  380. -webkit-line-clamp: 2;
  381. overflow: hidden;
  382. text-overflow: ellipsis;
  383. word-break: break-all;
  384. font-family: Source Han Sans, Source Han Sans;
  385. font-weight: 500;
  386. font-size: 18px;
  387. color: #333333;
  388. line-height: 26px;
  389. text-align: left;
  390. font-style: normal;
  391. text-transform: none;
  392. }
  393. >p {
  394. width: 200px;
  395. height: 22px;
  396. line-height: 20px;
  397. position: absolute;
  398. bottom: 5px;
  399. right: 0;
  400. >span {
  401. display: inline-block;
  402. // width: 100px;
  403. height: 18px;
  404. font-family: Source Han Sans, Source Han Sans;
  405. font-weight: 400;
  406. font-size: 12px;
  407. color: #999999;
  408. text-align: left;
  409. line-height: 14px;
  410. font-style: normal;
  411. text-transform: none;
  412. }
  413. >span:last-child {
  414. // width: 90px;
  415. text-align: right;
  416. margin-left: 20px;
  417. }
  418. }
  419. }
  420. }
  421. >li {
  422. width: 380px;
  423. height: 25px;
  424. white-space: nowrap;
  425. overflow: hidden;
  426. text-overflow: ellipsis;
  427. font-family: PingFang SC, PingFang SC;
  428. font-weight: 500;
  429. font-size: 18px;
  430. color: #333333;
  431. line-height: 21px;
  432. text-align: left;
  433. font-style: normal;
  434. text-transform: none;
  435. margin-bottom: 10px;
  436. em {
  437. display: inline-block;
  438. width: 8px;
  439. height: 8px;
  440. border-radius: 8px;
  441. margin-right: 10px;
  442. background-color: #d9d9d9;
  443. }
  444. }
  445. >li:hover {
  446. color: #139602;
  447. }
  448. >li:hover em {
  449. background-color: #139602;
  450. }
  451. }
  452. }
  453. }
  454. .innerRight {
  455. width: 381px;
  456. height: 290px;
  457. background-color: #fbfbfb;
  458. >.title {
  459. width: 380px;
  460. height: 40px;
  461. line-height: 40px;
  462. border-top: 1px solid #139602;
  463. border-bottom: 1px solid #e7e7e7;
  464. >h4 {
  465. font-family: Microsoft YaHei, Microsoft YaHei;
  466. font-weight: 400;
  467. margin-left: 20px;
  468. font-size: 20px;
  469. color: #000000;
  470. text-align: left;
  471. font-style: normal;
  472. text-transform: none;
  473. >span {
  474. float: right;
  475. font-family: Microsoft YaHei, Microsoft YaHei;
  476. font-weight: 400;
  477. font-size: 14px;
  478. margin-right: 10px;
  479. color: #999999;
  480. text-align: left;
  481. font-style: normal;
  482. text-transform: none;
  483. }
  484. }
  485. }
  486. .rightList {
  487. height: 540px;
  488. margin-top: 20px;
  489. >li {
  490. height: 100px;
  491. margin-bottom: 10px;
  492. >img {
  493. width: 150px;
  494. height: 100px;
  495. }
  496. >p {
  497. width: 219px;
  498. height: 100px;
  499. padding-left: 12px;
  500. font-family: PingFang SC, PingFang SC;
  501. font-weight: 400;
  502. font-size: 16px;
  503. color: #333333;
  504. line-height: 22px;
  505. text-align: left;
  506. font-style: normal;
  507. text-transform: none;
  508. }
  509. >p:hover {
  510. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  511. }
  512. }
  513. }
  514. }
  515. }
  516. .projectMoreBox {
  517. margin: 0 auto;
  518. height: 540px;
  519. margin-top: 20px;
  520. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreBg.png") no-repeat;
  521. margin-bottom: 40px;
  522. .projectMoreTitle {
  523. color: #028E21;
  524. padding-top: 20px;
  525. font-size: 26px;
  526. padding-left: 204px;
  527. }
  528. .projectMoreText {
  529. padding: 40px;
  530. font-size: 20px;
  531. color: #333333;
  532. text-indent: 2em;
  533. line-height: 36px;
  534. }
  535. }
  536. </style>